package com.longwang.controller;

import com.longwang.service.ISiteConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 前台 -- 站点配置控制器(关于我们)
 * @author longwang
 * @create 2018-10-25 17:52
 */
@Controller
@RequestMapping("/about")
public class SiteConfigController {

    @Autowired
    private ISiteConfigService iSiteConfigService;

    /**
     * 内容页
     * @return
     */
    @RequestMapping("/index")
    public String index(ModelMap modelMap){
        modelMap.put("siteConfig", iSiteConfigService.findById(1L).getData());
        return "about/index";
    }

}
